package cn.springcloudtest.mapper;

import cn.springcloudtest.pojo.Topic;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface TopicMapper {

    public Topic getTopicById(@Param(value = "id") Integer id) throws Exception;

    public List<Topic> getTopicListByMap(Map<String, Object> param) throws Exception;

    public Integer getTopicCountByMap(Map<String, Object> param) throws Exception;

    public Integer insertTopic(Topic topic) throws Exception;

    public Integer updateTopic(Topic topic) throws Exception;

    public Integer deleteTopicById(@Param(value = "id") Integer id) throws Exception;

}
